//
//  TotalCollectionViewCell.m
//  11111
//
//  Created by lanou3g on 15/10/29.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "TotalCollectionViewCell.h"

@interface TotalCollectionViewCell ()

// cell 的宽
@property (nonatomic, assign) CGFloat selfWidth;
// cell 的高
@property (nonatomic, assign) CGFloat selfHeight;

@end

@implementation TotalCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _selfHeight = frame.size.height;
        _selfWidth = frame.size.width;
        [self addSubViews];
    }
    return self;
}

// 布局视图
- (void)addSubViews
{
    self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, _selfWidth, _selfWidth)];
  //  self.imageV.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:self.imageV];
    
    self.upLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.imageV.bottom, _selfWidth, 25 *kHeight)];
 //   self.upLabel.backgroundColor = [UIColor clearColor];
    self.upLabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.upLabel];
    
    self.downLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.upLabel.bottom, _selfWidth, 25 * kHeight)];
  //  self.downLabel.backgroundColor = [UIColor brownColor];
    self.downLabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.downLabel];
    
}

@end
